<?php

declare(strict_types=1);

namespace Plugin\Attractions\Broadcast\Process;

use Hyperf\AsyncQueue\Process\ConsumerProcess;
use Hyperf\Process\Annotation\Process;

#[Process(name: "broadcast-queue-consumer")]
class BroadcastConsumer extends ConsumerProcess
{
    protected string $queue = 'broadcast';

    public function isEnable($server): bool
    {
        return env('ENABLE_PROCESS');
    }
}